package project.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import project.dao.HistoryMapper;
import project.model.History;

import java.util.List;
@Service
public class HistoryServiceImpl implements HistoryService {
    @Autowired
    HistoryMapper historyMapper;
    @Override
    public int addHistory(History history) {
        return historyMapper.addHistory(history);
    }

    @Override
    public List<History> getHistory(int uid) {
        return historyMapper.getHistory(uid);
    }

    @Override
    public int deleteHistory(int hid) {
        return historyMapper.deleteHistory(hid);
    }
}
